from dataclasses import dataclass
from typing import Callable, Optional


@dataclass
class KeyFunc:
    key: str
    func: Optional[Callable]
